package com.ruoyi.cinema.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 卖品分类对象 goods_category
 *
 * @author HHAOYU
 * @date 2020-12-09
 */
@TableName("goods_category")
public class GoodsCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id")
    private Long id;
    /** 影城ID */
    @Excel(name = "影城ID")
    private Long cinemaId;
    /** 分类编号 */
    @Excel(name = "分类编号")
    private String categoryCode;
    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    private String categoryImage;

    private String status;
    /** 排序 */
    @Excel(name = "排序")
    private Long sortNo;

    @TableField(exist=false)
    private String cinemaName;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCinemaId(Long cinemaId)
    {
        this.cinemaId = cinemaId;
    }

    public Long getCinemaId()
    {
        return cinemaId;
    }
    public void setCategoryCode(String categoryCode)
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode()
    {
        return categoryCode;
    }
    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }

    public String getCategoryImage() {
        return categoryImage;
    }

    public void setCategoryImage(String categoryImage) {
        this.categoryImage = categoryImage;
    }

    public void setSortNo(Long sortNo)
    {
        this.sortNo = sortNo;
    }

    public Long getSortNo()
    {
        return sortNo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCinemaName() {
        return cinemaName;
    }

    public void setCinemaName(String cinemaName) {
        this.cinemaName = cinemaName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cinemaId", getCinemaId())
            .append("categoryCode", getCategoryCode())
            .append("categoryName", getCategoryName())
            .append("status", getStatus())
            .append("sortNo", getSortNo())
            .toString();
    }
}
